package cn.wh.core.io;

import java.io.File;
import java.io.IOException;
import java.io.InputStream;

/**
 * @author: wh
 * @create: 2022-09-23 17:16
 * @description
 **/
public class FileSystemResource  implements Resource {

    private final File file;

    private final String path;

    public FileSystemResource(String path) {
        this.path = path;
        this.file=new File(path);
    }

    public FileSystemResource(File file) {
        this.file = file;
        this.path=file.getPath();
    }

    @Override
    public InputStream getInputStream() throws IOException {
        return null;
    }
}
